// utils/rpx.js
export const pxToRpx = (px) => {
  const systemInfo = uni.getSystemInfoSync()
  return Math.round(px * (750 / systemInfo.windowWidth))
}

export const rpxToPx = (rpx) => {
  const systemInfo = uni.getSystemInfoSync()
  return rpx / (750 / systemInfo.windowWidth)
}